Compliance Toolkit - Quick Start Guide
π Getting Started
Build the Application
# Build the interactive CLI
go build -o ComplianceToolkit.exe ./cmd/toolkit.go
Run the Application
# Launch the interactive menu
.\ComplianceToolkit.exe
π Main Menu
When you launch the application, you'll see:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β ββββββββ¦βββββ¦ β¦ββββββββββββ ββ¦ββββββββ¦ β¦βββ¦ββ¦β β
β β β βββββ βββ ββ ββ£ββββ ββ£ β β ββ ββ β β©ββ β β
β βββββββ© β©β© β©βββ©β© β©βββββββββ β© βββββββ©βββ© β©β© β© β
β β
β Windows Registry Compliance Scanner β
β Version 1.0.0 β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MAIN MENU β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β [1] Run Reports β
β [2] View HTML Reports β
β [3] View Log Files β
β [4] Configuration β
β [5] About β
β β
β [0] Exit β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π― How to Use
1. Run Reports
Option 1 β Select option [1] from main menu
You'll see 6 report types:
- π» [1] System Information - OS version, computer name, etc.
- π [2] Security Audit - UAC, Firewall, Windows Defender
- π¦ [3] Software Inventory - Installed applications
- π [4] Network Configuration - DNS, proxy, network settings
- π€ [5] User Settings - Desktop, themes, preferences
-
β‘ [6] Performance Diagnostics - Memory, boot settings
-
π [7] Run ALL Reports - Execute all 6 reports at once
Example:
β€ Select report: 1
β³ Running system_info.json...
β
[os_product_name] Success
β
[os_edition] Success
β
[os_build_number] Success
β οΈ [registered_organization] Not found
...
π Results: 8 successful, 2 errors
π HTML Report: output/reports/System_Information_20250104_123045.html
β
SUCCESS: Report completed successfully!
βΉ INFO: Report saved to: output/reports
2. View HTML Reports
Option 2 β Opens generated HTML reports in your browser
- Lists all HTML reports in
output/reports/ - Select a report number to open it
- Report opens automatically in your default browser
- Beautiful, interactive HTML with color-coded results
HTML Report Features: - β Green checkmarks for successful reads - β Red X for errors/not found - π Statistics dashboard - π¨ Professional gradient design - π± Responsive layout - π¨οΈ Print-friendly
3. View Log Files
Option 3 β View application logs
- Shows all log files in
output/logs/ - JSON-formatted structured logs
- Includes timestamps, operation durations, errors
Log Location:
output/logs/toolkit_20250104_123045.log
4. Configuration
Option 4 β View current settings
Shows: - Output directory path - Logs directory path - Operation timeout (default: 10 seconds) - Log level (INFO/DEBUG)
5. About
Option 5 β Information about the toolkit
- Version information
- Features overview
- Security guarantees
π Output Structure
After running reports, you'll have:
lab3-registry-read/
βββ ComplianceToolkit.exe β Your executable
βββ output/
β βββ reports/
β β βββ System_Information_20250104_123045.html
β β βββ Security_Audit_20250104_123050.html
β β βββ Software_Inventory_20250104_123055.html
β β βββ ...
β βββ logs/
β βββ toolkit_20250104_123045.log
βββ configs/
β βββ reports/
β βββ system_info.json
β βββ security_audit.json
β βββ ...
π¬ Typical Workflow
First Time Use
-
Build the application:
bash go build -o ComplianceToolkit.exe ./cmd/toolkit.go -
Run the toolkit:
bash .\ComplianceToolkit.exe -
Select [1] - Run Reports
-
Select [7] - Run ALL Reports
-
Wait for all reports to complete (~30 seconds)
-
Select [0] - Back to Main Menu
-
Select [2] - View HTML Reports
-
Select a report to open in browser
-
Review the beautiful HTML report!
Regular Use
- Launch toolkit:
.\ComplianceToolkit.exe - Select specific report you want (e.g., Security Audit)
- View HTML report immediately
- Check logs if needed
- Exit when done
β‘ Quick Commands
If you prefer command-line over interactive menu:
# Build all tools
go build -o ComplianceToolkit.exe ./cmd/toolkit.go
go build -o registryreader.exe ./cmd/main.go
go build -o report_runner.exe ./cmd/report_runner.go
# Run tests
go test ./pkg/... -v
# Run specific report (non-interactive)
go run ./cmd/report_runner.go -config configs/reports/system_info.json
# Generate JSON output
go run ./cmd/report_runner.go -json > report.json
π‘ Tips & Tricks
Tip 1: Run as Administrator
Some registry keys require admin access:
- Right-click Command Prompt β "Run as Administrator"
- Then run .\ComplianceToolkit.exe
Tip 2: Schedule Reports
Create a batch file for scheduled scanning:
@echo off
cd D:\golang-labs\lab3-registry-read
ComplianceToolkit.exe
Tip 3: Export Reports
HTML reports can be: - Printed to PDF (Ctrl+P β Save as PDF) - Emailed to compliance team - Archived for audit trails
Tip 4: Quick System Check
For fast system info:
1. Launch toolkit
2. Press 1 β 1 β 0 β 2 β 1
3. System info opens in browser
π Troubleshooting
"Access Denied" Errors
Solution: Run as Administrator
"Key Not Found" Errors
Normal: Not all registry keys exist on all systems - Security audit may show missing keys (expected) - Software inventory depends on installed software
"Timeout" Errors
Solution: Increase timeout in configuration - Default is 10 seconds - Registry might be busy/slow system
HTML Report Won't Open
Solution:
- Check output/reports/ directory exists
- Manually open the HTML file
- Check browser isn't blocking local files
π Understanding Report Results
β Green Checkmark
- Registry key/value found
- Successfully read
- Value displayed
β Red X with "Not Found"
- Registry key doesn't exist (normal)
- Value doesn't exist in that key
- No action needed unless expected
β Red X with Error
- Permission denied (run as admin)
- Timeout (increase timeout)
- Malformed registry path (check config)
π― Next Steps
- β Run your first report
- β View the HTML output
- β Review the security audit
- β Check software inventory
- β Customize JSON configs for your needs
π Additional Resources
JSON_CONFIG_GUIDE.md- Create custom reportsTESTING_GUIDE.md- Comprehensive testingIMPROVEMENTS.md- Technical improvementsREADME.md- Full documentation
π You're Ready!
Launch the toolkit and start scanning:
.\ComplianceToolkit.exe
Enjoy your professional compliance toolkit! π